﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace lcmyjobs.Web.Admin
{
    public partial class showoffer : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Session["adminName"] != null)
                {
                    if (Request["id"] != null)
                    {
                        int oid = Convert.ToInt32(Request["id"]);
                        lcmyjobs.BLL.offer_user bub = new BLL.offer_user();
                        lcmyjobs.Model.offer_user model = new lcmyjobs.Model.offer_user();
                        model = bub.GetModel(oid);
                        this.lblintroducername.Text = model.offername;
                        this.lblcompany.Text = model.unit;
                        this.lblemail.Text = model.email;
                        this.lblintroducerid.Text = model.offerID;
                        this.lbljob.Text = model.job;
                        this.lblmobilphone.Text = model.phone;
                        this.lblotime.Text = model.offertime.ToString();
                        if (model.status == 1)
                        {
                            this.lblstatus.Text = "处理中";
                        }
                        else if(model.status == 2)
                        {
                            this.lblstatus.Text = "成功";
                        }
                        else if (model.status == 3)
                        {
                            this.lblstatus.Text = "失败";
                        }
                    }
                }
            }
        }
    }
}